package com.mall.service;

import com.mall.entity.UserAddress;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: liang
 * @time: 2024-01-17 16:55
 */
public interface IUserAddressService {

    int removeAddress(Integer addressId);

    UserAddress addAddress(UserAddress address);

    /**
     * 查看所有收货地址
     * @Param :userId
     */
    List<UserAddress> queryAllUserAddressByUserId(String userId);

    /**
     * 查看具体收货地址
     * @Param :addressId
     */
    UserAddress queryAddressByAddressId(int addressId);

    /**
     * 修改收获地址
     */
    UserAddress modifyUserAddress(UserAddress address);


    /**
     * 查询用户收货地址
     * @return
     */
    List<UserAddress> queryUserAddress(String userId);
}
